﻿<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="~/css/aui.css" />
    <link rel="stylesheet" type="text/css" href="./css/aui.css" />
    <style type="text/css">
        .header {
            padding: 2.5rem 0.5rem 2rem 0.5rem;
        }
    </style>
</head>
<body>
    <header class="aui-bar aui-bar-nav aui-text-left header" id="header">
        <br />
        <h1> <a class="aui-btn aui-pull-right" tapmode="tapmode" onClick="openClub()"> <em class="aui-iconfont aui-icon-calendar"></em> </a> 医生排班表更变申请 </h1>
    </header>
    <div class="aui-content aui-margin-b-15">
        <ul class="aui-list aui-form-list">
            <li class="aui-list-header"> <label>医生排班表：“<i class="aui-iconfont aui-icon-correct"></i>”代表该医生在此星期有排班，“<i class="aui-iconfont aui-icon-close"></i>”代表该医生在此星期没有排班。</label></li>
            <li class="aui-list-header"> <label>请求来自医生ID：@ViewData["id"] 上行表示原排班表,下行表示请求变更的排班表</label></li>

            <li class="aui-list-item">
                <div class="aui-list-item-inner">

                    <div class="aui-list-item-inner">
                        <div class="aui-col-xs-7">周一</div>
                        <div class="aui-col-xs-7">周二</div>
                        <div class="aui-col-xs-7">周三</div>
                        <div class="aui-col-xs-7">周四</div>
                        <div class="aui-col-xs-7">周五</div>
                        <div class="aui-col-xs-7">周五</div>
                        <div class="aui-col-xs-7">周日</div>
                        <div class="aui-col-xs-7">修改</div>
                    </div>
                </div>
            </li>
            @model IEnumerable<Weekdbo>
            @foreach (var item in Model)
            {
                <li class="aui-list-item">
                    <div class="aui-list-item-inner">

                        <div class="aui-list-item-inner">
                            @if (item.monday == 1)
                            {<div class="aui-col-xs-7"><i class="aui-iconfont aui-icon-correct"></i></div>}
                            else
                            {<div class="aui-col-xs-7"><i class="aui-iconfont aui-icon-close"></i></div>}
                            @if (item.tuesday == 1)
                            {<div class="aui-col-xs-7"><i class="aui-iconfont aui-icon-correct"></i></div>}
                            else
                            {<div class="aui-col-xs-7"><i class="aui-iconfont aui-icon-close"></i></div>}
                            @if (item.wednesday == 1)
                            {<div class="aui-col-xs-7"><i class="aui-iconfont aui-icon-correct"></i></div>}
                            else
                            {<div class="aui-col-xs-7"><i class="aui-iconfont aui-icon-close"></i></div>}
                            @if (item.thursday == 1)
                            {<div class="aui-col-xs-7"><i class="aui-iconfont aui-icon-correct"></i></div>}
                            else
                            {<div class="aui-col-xs-7"><i class="aui-iconfont aui-icon-close"></i></div>}
                            @if (item.friday == 1)
                            {<div class="aui-col-xs-7"><i class="aui-iconfont aui-icon-correct"></i></div>}
                            else
                            {<div class="aui-col-xs-7"><i class="aui-iconfont aui-icon-close"></i></div>}
                            @if (item.saturday == 1)
                            {<div class="aui-col-xs-7"><i class="aui-iconfont aui-icon-correct"></i></div>}
                            else
                            {<div class="aui-col-xs-7"><i class="aui-iconfont aui-icon-close"></i></div>}
                            @if (item.sunday == 1)
                            {<div class="aui-col-xs-7"><i class="aui-iconfont aui-icon-correct"></i></div>}
                            else
                            {<div class="aui-col-xs-7"><i class="aui-iconfont aui-icon-close"></i></div>}
                        </div>
                    </div>
                </li>
                @if (item.hao == "2")
                {
                    <div class="aui-list-item-inner">
                        <a href="/Admin/UpdateWeekdboIII?id=@ViewData["id"]&d1=@item.monday&d2=@item.tuesday&d3=@item.wednesday&d4=@item.thursday&d5=@item.friday&d6=@item.saturday&d7=@item.sunday"> <p><div class="aui-btn aui-btn-info aui-btn-block aui-btn-outlined">通过此请求</div></p></a>
                    </div>
                    <br />
                }
            }
        </ul>
    </div>
    <div class="aui-list-item-inner">
        <a href="/Admin/Index"> <p><div class="aui-btn aui-btn-info aui-btn-block aui-btn-outlined">返回主菜单</div></p></a>
    </div>

</body>
</html>
<script type="text/javascript" src="~/script/api.js"></script>
<script type="text/javascript">
    apiready = function () {
        api.setStatusBarStyle({
            style: 'light'
        });
        api.parseTapmode();
        var header = $api.byId('header');
        var headerPos = $api.offset(header);
        var body_h = $api.offset($api.dom('body')).h;
        var header_h = $api.offset($api.byId('header')).h;
        api.openFrame({
            name: 'index_frm',
            url: '~/html/index_frm.html',
            bounces: true,
            rect: {
                x: 0,
                y: header_h,
                w: 'auto',
                h: 'auto'
            }
        })
    };
    function openClub() {
        var delay = 0;
        if (api.systemType != 'ios') {
            delay = 300;
        }
        api.openWin({
            name: 'club_win',
            url: '~/html/club_win.html',
            bounces: false,
            delay: delay,
            slidBackEnabled: true,
            vScrollBarEnabled: false,
            progress: {
                type: "page"
            }
        });
    }
    function closeWin() {
        api.closeWin({
        });
    }
</script>
